package com.cdxy.biz.process.impl;

import com.cdxy.biz.process.IPasswordOptBizProcess;
import com.cdxy.model.dto.req.ForgetPasswordReq;
import com.cdxy.model.dto.req.ModifyPasswordReq;
import com.cdxy.model.dto.req.SendMobileCodeReq;
import com.cdxy.model.dto.req.SetPasswordReq;
import com.cdxy.service.IPasswordOptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: tangy
 * @Date: 2020/3/10 11:06
 */
@Service
public class PasswordOptBizProcessImpl implements IPasswordOptBizProcess {

    @Autowired
    private IPasswordOptService passwordOptService;

    @Override
    public void setPassword(SetPasswordReq setPasswordReq) {
        passwordOptService.setPassword(setPasswordReq);
    }

    @Override
    public void modifyPassword(ModifyPasswordReq modifyPasswordReq) {
        passwordOptService.modifyPassword(modifyPasswordReq);
    }

    @Override
    public void forgetPassword(ForgetPasswordReq forgetPasswordReq) {
        passwordOptService.forgetPassword(forgetPasswordReq);
    }

    @Override
    public void sendSmsForgetPassword(SendMobileCodeReq sendMobileCodeReq) {
        passwordOptService.sendSmsForgetPassword(sendMobileCodeReq);
    }

    @Override
    public void sendSmsModifyPassword(SendMobileCodeReq sendMobileCodeReq) {
        passwordOptService.sendSmsModifyPassword(sendMobileCodeReq);
    }
}
